fix file extension for temp files for pandoc 1.9 compatibility
Use UTF-8 for all writers. support non-english