open both template and output files as utf-8
Merge pull request #19 from stefano-dh/utf8

open both template and output files as utf-8