public static String toString(byte[] input, String encoding) throws IOException {
        return new String(input, Charsets.toCharset(encoding));
    }
Get the contents of a <code>byte[]</code> as a String
using the specified character encoding.
<p>
Character encoding names can be found at
<a href="http://www.iana.org/assignments/character-sets">IANA</a>.

@param input    the byte array to read from
@param encoding the encoding to use, null means platform default
@return the requested String
@throws NullPointerException if the input is null
@throws IOException          if an I/O error occurs (never occurs)
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java