code: public String toDecodedString(final java.net.URI uri) {
      final String scheme = uri.getScheme();
      final String part = uri.getSchemeSpecificPart();
      if ((scheme == null)) {
        return part;
      }
      return ((scheme + ":") + part);
    }
docs: converts a java.net.URI to a decoded string