Fix proxying of urls with query strings