code: public static String readAsString(ReadableBuffer buffer, Charset charset) {
      Preconditions.checkNotNull(charset, "charset");
      byte[] bytes = readArray(buffer);
      return new String(bytes, charset);
    }
docs: Reads the entire {@link ReadableBuffer} to a new {@link String} with the given charset.