docs: private static String encodeUrl(String url) {
          try {
              URL u = new URL(url);
              return encodeUrl(u).toExternalForm();
          } catch (Exception e) {
              return url;
          }
  	}