Decode location.href to get consistent results on Firefox

window.location.toString() in Firefox returns the encoded version of the url. Example:

Firefox: http://www.example.com/?foo%5B1%5D=bar
Other browsers: http://www.example.com/?foo[1]=bar