Add an option to import_template to choose the encoding. Should help to fix problems in windows XP