package HTTP::Server::PSGI; ... sub _encode { if ($_[0] =~ /[^\x00-\xff]/) { Carp::carp("Wide character outside byte range in response. Encoding data as UTF-8"); utf8::encode($_[0]); } }