code: public URI toURI() throws URISyntaxException {
  
          if (m_isStrict && m_errorFree) {
              // we have already verified that the URI contains no errors
              return new URI(m_uri);
          }
          // create a new URI from the components
          // using this constructor the input will be escaped if required
          return new URI(null, m_prefix + (m_query != null ? "?" + m_query : ""), m_anchor);
      }
docs: Returns an URI object created from the original input String.<p>
  
  This method will do a "best effort" to convert the original input String to a legal URI.
  Most notably, it will be able to handle original input Strings that contain a space " "
  and other usually illegal characters.<p>
  
  @return an URI object created from the original input String
  
  @throws URISyntaxException in case no URI object can be created from the original input String