add quick hack for i18n

this fix problem with using env.get_template() and file.writelines()
together when we have not ancii letters in any template