Use rawurlencode in redirects to preserve spaces in file names.