Fix multiple value under same name in querystring

Fixes #295 and #298