public static LinkedBuffer writeUTF8(final CharSequence str, final WriteSession session,
            final LinkedBuffer lb)
    {
        final int len = str.length();
        if (len == 0)
            return lb;

        return lb.offset + len > lb.buffer.length ? writeUTF8(str, 0, len, lb.buffer, lb.offset,
                lb.buffer.length, session, lb) : writeUTF8(str, 0, len, session, lb);
    }
Writes the utf8-encoded bytes from the string into the {@link LinkedBuffer}.
protostuff-api/src/main/java/io/protostuff/StringSerializer.java