@Override
public StringValue encode(Env env, CharSequence str)
{
CharBuffer in = CharBuffer.wrap(str);
TempBuffer tempBuf = TempBuffer.allocate();
try {
ByteBuffer out = ByteBuffer.wrap(tempBuf.getBuffer());
StringValue sb = env.createBinaryBuilder();
while (in.hasRemaining()) {
CoderResult coder = _encoder.encode(in, out, false);