public static String urlEncode(final String value, final String encoding) {
        return Unchecked.supplier(() -> URLEncoder.encode(value, encoding)).get();
    }
Url encode a value.

@param value    the value to encode
@param encoding the encoding
@return the encoded value
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java