fix to specify valid output encoding

when execute ```dim init``` with multi bytes template, this command prints ```Wide character in print```.

I fix it as described in http://perldoc.perl.org/PerlIO.html.