fixed the issue with if you have a file name with a space you get a redirect error