protected byte[] internalSerializeToBytes(final Object obj) {
        return internalSerializeToString(obj).getBytes(StandardCharsets.UTF_8);
    }
<p>internalSerializeToBytes.</p>

@param obj a {@link Object} object
@return an array of {@link byte} objects
pac4j-core/src/main/java/org/pac4j/core/util/serializer/AbstractSerializer.java