fix for reading filenames with spaces