code: private URI toUri(final String path) {
          try {
              return new URI(null, null, path, null);
          } catch (URISyntaxException e) {
              throw new IllegalArgumentException(e);
          }
      }
docs: Converts from String to URI.
  @param path The string to convert
  @return URI if there was no exception