Make Utf8Utils thread-safe