make query string parsing operate closer to the http spec