public static String toString(byte[] bytes) {
        return toString(bytes, PREFERRED_ENCODING);
    }
Converts the specified byte array to a String using the {@link CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING}.

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