Fix handling the request URL string