code: private final String bufferToString(byte[] str) {
  		String string = null;
  		if (str != null) {
  			string = AMF.CHARSET.decode(ByteBuffer.wrap(str)).toString();
  			log.debug("String: {}", string);
  		} else {
  			log.warn("ByteBuffer was null attempting to read String");
  		}
  		return string;
  	}
docs: Converts the bytes into a string.
  
  @param str
  string bytes
  @return decoded String