attempt to support spaces in filenames