Correct the wrong enconding reading the template.