Add media subdirectory to .gitignore; URLencode filenames for use as f GET param, fixes crashes related to special chars in filenames