Fix encoding of spaces in cached data filenames