public static void write(byte[] data, Writer output, String encoding) throws IOException {
        write(data, output, Charsets.toCharset(encoding));
    }
Writes bytes from a <code>byte[]</code> to chars on a <code>Writer</code>
using the specified character encoding.
<p>
Character encoding names can be found at
<a href="http://www.iana.org/assignments/character-sets">IANA</a>.
<p>
This method uses {@link String#String(byte[], String)}.

@param data     the byte array to write, do not modify during output,
                null ignored
@param output   the <code>Writer</code> to write to
@param encoding the encoding to use, null means platform default
@throws NullPointerException        if output is null
@throws IOException                 if an I/O error occurs
@throws UnsupportedCharsetException thrown instead of {@link UnsupportedEncodingException} in version 2.2 if the encoding is not
                                    supported.
@since 1.1
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java