code: public void splitQuery(I invocation, String rawURI)
      throws IOException
    {
      int p = rawURI.indexOf('?');
      if (p > 0) {
        invocation.setQueryString(rawURI.substring(p + 1));
        
        rawURI = rawURI.substring(0, p);
      }
  
      invocation.setRawURI(rawURI);
      
      String uri = normalizeUri(rawURI);
  
      invocation.setURI(uri);
    }
docs: Splits out the query string, and normalizes the URI, assuming nothing
  needs unescaping.