public static void serializeString(ByteBuf outputBuf, String value, Charset charset) {
    byte[] valueArray = value.getBytes(charset);
    outputBuf.writeInt(valueArray.length);
    outputBuf.writeBytes(valueArray);
  }
Serializes a string into {@link ByteBuf}
@param outputBuf The output {@link ByteBuf} 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