use Encode; decode_utf8($tmpl->output);