lib: Document which strings are returned in UTF-8