code: public static URI asURI(final String s) {
          try {
              return new URI(s);
          } catch (final URISyntaxException e) {
              throw new TechnicalException("Cannot make an URI from: " + s, e);
          }
      }
docs: Convert a string into an URI.
  
  @param s the string
  @return the URI