decode url to string for proper filenames