Fix query string handling in http server.