Bug 927508 - accept URLs with querystrings

https://bugzilla.mozilla.org/show_bug.cgi?id=927508