Ensures the returned text will be valid UTF-8 string, with incorrect letters changed to question marks.
text |
a text to make valid |
Valid UTF-8 string, with replaced incorrect letters. Free it with g_free, when no longer needed. |