in reply to Handling Encoding in Templates

use open; ?
http://search.cpan.org/grep?release=Template-Toolkit-2.19&string=utf&i=1&n=1
$tt->process($infile, $vars, $outfile, binmode => ':utf8') || die $tt->error(), "\n";