Strip query string from URLs