Add a constructor for UriParams to get the parameters from an existing Uri