Suppressing warning 'Wide character in print at foobar/local/lib/perl5/Ksgk.pm line 372.'

Xslate opens input file with encoding ':utf8' by default. So rendered string can be flagged string.
You should check whether rendered string is flagged or not, and down flags if it was enabled.

Regards.
kawamuray