Bug fixes

* Check the length of the serialized parameters before removing the
trailing ampersand.
* Header authorization failed with query string parameters in URL.
* Updated “not” to “!” to be more script-friendly.