public static String decode(byte[] utf8) throws CharacterCodingException {
  return decode(ByteBuffer.wrap(utf8),true);
}

public static String decode ( byte [ ] utf8 ) throws CharacterCodingException { return decode ( ByteBuffer . wrap ( utf8 ) , true ) ; }
converts the provided byte array to a string using the utf - 8 encoding . if the input is malformed , replace by a default value .
