public static void serializeString(ByteBuffer outputBuffer, String value, Charset charset) {
    byte[] valueArray = value.getBytes(charset);
    outputBuffer.putInt(valueArray.length);
    outputBuffer.put(valueArray);
  }
Serializes a string into byte buffer
@param outputBuffer The output buffer to serialize the value to
@param value The value to serialize
@param charset {@link Charset} to be used to encode
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java