fix for filenames containing spaces