protected String convertBytesToString(final byte[] random) {
        return new String(random, StandardCharsets.UTF_8);
    }
Converts byte[] to String by simple cast. Subclasses should override.

@param random raw bytes
@return a converted String
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/gen/AbstractRandomStringGenerator.java