Parameters quote wrap

Query parameters other than `default` can also have spaces in them and should be quoted. The code attempted to do that but failed because it ended up always returning `value` unmodified