@SneakyThrows
  private static String encode(Object string, Charset charset) {
    return URLEncoder.encode(string.toString(), charset.name());
  }
An URL encoded form content processor.

@author Artem Labazin
form/src/main/java/feign/form/UrlencodedFormContentProcessor.java