decode template files as utf8