docs: public static String formatQuery(Map<String, String> params) {
          StringBuilder query = new StringBuilder();
          for (Entry<String, String> entry : params.entrySet()) {
              try {
                  query.append(URLEncoder.encode(entry.getKey(), "UTF-8")).append("=").append(URLEncoder.encode(entry.getValue(), "UTF-8"))
                  .append("&");
              } catch (UnsupportedEncodingException e) {
                  throw new RuntimeException(e);
              }
          }
          return query.deleteCharAt(query.length() - 1).toString();
      }