public static String encodeForURL(String value, EncodingOptions encodingOptions) { if (!encodingOptions.isSpaceAsPercent()){ return encodeForURLSpaceAsPlus(value, encodingOptions.getCharset()); } return encodeForURLSpaceAsPercent(value, encodingOptions.getCharset()); }