make cache key file name safe for file cache