fix #26: cannot handle utf-8 strings
update pandoc templates