/ Convert str to UTF-8 (if not already), then convert that to HTML named entities. // and numbered references. Compare to native htmlentities() function. // Unlike that function, this will skip any already existing entities in the string. // mb_convert_en