Handle query string parsing in request (fixes #40)