gchar* purple_utf8_strip_unprintables ( const gchar* str )
Removes unprintable characters from a UTF-8 string. These characters (in particular low-ASCII characters) are invalid in XML 1.0 and thus are not allowed in XMPP and are rejected by libxml2 by default.
The returned string must be freed by the caller.
A valid UTF-8 string.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.