Fix error with spaces in filenames.