protected String urlEncode(String input, String encodingScheme) throws UnsupportedEncodingException {
        return URLEncoder.encode(input, encodingScheme);
    }
URL-encode the given input String with the given encoding scheme, using
{@link URLEncoder#encode(String, String) URLEncoder.encode(input, enc)}.

@param input          the unencoded input String
@param encodingScheme the encoding scheme
@return the encoded output String
@throws UnsupportedEncodingException if thrown by the JDK URLEncoder
@see java.net.URLEncoder#encode(String, String)
@see java.net.URLEncoder#encode(String)
web/src/main/java/org/apache/shiro/web/util/RedirectView.java