fixed bug in pandoc conversion for handling spaces in filenames