Add a parameter to the query string.
If the encoded flag is true then this method assumes that the name and value do not need encoding or are already encoded correctly. Otherwise, it translates the name and value with the character encoding of this URI and adds them to the set of parameters for the query. If the encoding for this URI has not been set, then the default encoding used is "UTF-8".
@param newParams the map of new parameters to add to the URI
@param encoded Flag indicating whether the names and values arealready encoded.