code: public void writeBinary(final PacketOutputStream pos) throws IOException {
      byte[] bytes = stringValue.getBytes("UTF-8");
      pos.writeFieldLength(bytes.length);
      pos.write(bytes);
    }
docs: Write data to socket in binary format.
  
  @param pos socket output stream
  @throws IOException if socket error occur