@Override
  public void writeBinary(ByteBuffer bin) throws TException {
    if (bin == null) {
      writeRawBytes(nullByte, 0, 1);
      return;
    }

    int length = bin.limit() - bin.position() - bin.arrayOffset();
    if (bin.hasArray()) {
      writeBinary(bin.array(), bin.arrayOffset() + bin.position(),
        length);
    } else {
      byte []copy = new byte[length];
      bin.get(copy);
      writeBinary(copy);
    }
  }
The escaped byte sequence for the "\1" byte. This cannot be changed alone
without changing the readString() code.
serde/src/java/org/apache/hadoop/hive/serde2/thrift/TBinarySortableProtocol.java