encode package:utf8-string

Encode a Haskell String to a list of Word8 values, in UTF8 format.
Encode a single Haskell Char to a list of Word8 values, in UTF8 format.
Encode a string using encode and store the result in a String.
isUTF8Encoded str tries to recognize input string as being in UTF-8 form.
utf8Encode str is a convenience function; checks to see if str isn't UTF-8 encoded before doing so. Sometimes useful, but you are better off keeping track of the encoding so as to avoid the cost of checking.