decode utf8 before submitting to PSGI
(not 100% sure why this is needed, but without it, Perl 5.8.8 returns invalid data)