Don't strip trailing slash when adding query parameters as per RFC1738 a...

...nd RFC2396

Currently stripping trailing slashes when adding query parameters so that http://api.com/collection/ with parameter foo=bar becomes http://api.com/collection?foo=bar instead of http://api.com/collection/?foo=bar.

This changes that behavior to not strip the trailing slash and includes a test to verify the functionality.