bug: templates were not utf-8 encoded