Fixed the template output by forcing UTF8 reading