resolve #112 [rt.cpan.org #83265] - strip query string first

before calling unescape otherwise we incorrectly remove any previously
encoded ? chars in the URI