The Haskell analogy to the Encode::Unicode module in Perl: http://search.cpan.org/dist/Encode/
Encode.Unicode.UTF8