Produce a title from a filename for metadata.

@param {string} filename
@returns {string} title

@private
function metaTitleFromFileName (filename) {
  if (filename.substr(-1) === '/') {
    filename = filename.substr(0, filename.length - 1);
  }

  return decodeURIComponent(filename);
}