docs: @Override
    public void encodeUtf8(CharSequence in, ByteBuffer out) {
      if (out.hasArray()) {
        int start = out.arrayOffset();
        int end = encodeUtf8Array(in, out.array(), start + out.position(),
            out.remaining());
        out.position(end - start);
      } else {
        encodeUtf8Buffer(in, out);
      }
    }