strip shell characters from filenames before invoking pandoc