junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/EncoderUtils.java
public static String urlEncode(String value) {
		try {
			return URLEncoder.encode(value, StandardCharsets.UTF_8.displayName());
		}
		catch (UnsupportedEncodingException ex) {
			throw new Utf8EncodingException(ex);
		}
	}
public static String urlEncode(String value) {
		try {
			return URLEncoder.encode(value, StandardCharsets.UTF_8.displayName());
		}
		catch (UnsupportedEncodingException ex) {
			throw new Utf8EncodingException(ex);
		}
	}
public static String urlEncode ( String value ) { try { return URLEncoder . encode ( value , StandardCharsets . UTF_8 . displayName ( ) ) ; } catch ( UnsupportedEncodingException ex ) { throw new Utf8EncodingException ( ex ) ; } }
Translates a string into {@code application/x-www-form-urlencoded}
format using UTF-8 encoding.

@param value The string value.
@return The encoded value.
@throws Utf8EncodingException If, for some weird reason, UTF-8 encoding is not supported.
Translates a string into { @code application / x - www - form - urlencoded } format using UTF - 8 encoding .