Encode XML entities into UTF8 string. First checks if processing is needed. If not, the original string is returned. If processing is needed, a new string is allocated.
Decode XML entities into UTF8 string. Eg. "&" -> "&", "&" -> "&", "&" -> "&" Throws TextException on failure The given string is modified.