fixed a bug that didn't allow spaces in file names when using file output