Fix issue #362 - QueryString support

Closes #362 
Don't define a variable in a try block.  Just do `url = new URL(url);` and reuse the `url` arg.