support for being able to open templates with utf-8