Pop quiz: characters or bytes? 

my $template = Template->new({
    ENCODING => 'utf8',
});

binmode(STDOUT, ':utf8');