code: protected String decodeString(byte[] data) {
      String rv = null;
      try {
        if (data != null) {
          rv = new String(data, charset);
        }
      } catch (UnsupportedEncodingException e) {
        throw new RuntimeException(e);
      }
      return rv;
    }
docs: Decode the string with the current character set.