public static byte[] toBytes(String source) {
        return toBytes(source, PREFERRED_ENCODING);
    }
Converts the specified source argument to a byte array with Shiro's
{@link CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING}.

@param source the string to convert to a byte array.
@return the bytes representing the specified string under the {@link CodecSupport#PREFERRED_ENCODING PREFERRED_ENCODING}.
@see #toBytes(String, String)
src/main/java/org/apache/shiro/lang/codec/CodecSupport.java