code: public String readStringLengthEncoded(final Charset charset) {
      int length = (int) getLengthEncodedNumeric();
      String string = new String(buf, position, length, charset);
      position += length;
      return string;
    }
docs: Reads length-encoded string.
  
  @param charset the charset to use, for example ASCII
  @return the read string