Commit the UTF-8 conversion code from @trou.

  This looks good and should go in CMessage.