public static ByteString copyFrom(final String text, final String charsetName)
    {
        try
        {
            return new ByteString(text.getBytes(charsetName));
        }
        catch (UnsupportedEncodingException e)
        {
            throw new RuntimeException(charsetName + " not supported?", e);
        }
    }
Encodes {@code text} into a sequence of bytes using the named charset and returns the result as a
{@code ByteString}.
protostuff-api/src/main/java/io/protostuff/ByteString.java