docs: public static String urlFrom( String baseUrl,
                                    String... pathSegments ) {
          StringBuilder urlBuilder = new StringBuilder(baseUrl);
          if (urlBuilder.charAt(urlBuilder.length() - 1) == '/') {
              urlBuilder.deleteCharAt(urlBuilder.length() - 1);
          }
          for (String pathSegment : pathSegments) {
              if (pathSegment.equalsIgnoreCase("..")) {
                  urlBuilder.delete(urlBuilder.lastIndexOf("/"), urlBuilder.length());
              } else {
                  if (!pathSegment.startsWith("/")) {
                      urlBuilder.append("/");
                  }
                  urlBuilder.append(pathSegment);
              }
          }
          return urlBuilder.toString();
      }