code: public static String string(byte[] bytes) {
      if (bytes == null) {
        return null;
      }
      try {
        return new String(bytes, ENCODING);
      } catch (UnsupportedEncodingException e) {
        log.error("UnsupportedEncodingException ", e);
        throw new RuntimeException(e);
      }
    }
docs: Utility for converting bytes to strings. UTF-8 is assumed.
  @param bytes
  @return