set enconding for all templates.