Support pdf export with spaces in filenames