Ensure utf-8 when calling pandoc.