Simple way to extract a query string