public static char[] toChars(byte[] bytes) {
        return toChars(bytes, PREFERRED_ENCODING);
    }
Returns the specified byte array as a character array using the
{@link CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING}.

@param bytes the byte array to convert to a char array
@return the specified byte array encoded as a character array ({@link CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING}).
@see #toChars(byte[], String)
src/main/java/org/apache/shiro/lang/codec/CodecSupport.java