Fixed bug about downloading files with spaces in filename.