Urls with dots in the query string keys are not correctly parsed

Because parse_str() allows to create variables from strings PHP automaticly replaces dots with underscores. This is a problem if you have to parse query strings like "?foo.bar=baz".
I hope the pull request targets the correct branch, I'm quite new to this.