add support for non-ancii letters in templates 

this repair using env.get_template() with file.writelines() in cases
we have not ancii letters in any template