translate English to French: In addition to Blackbit's note below, here's my shot at converting UTF-8 strings to HTML entities.
a simple function to convert encoding that appears mixed.