url encode and decode filenames