Auto-clean query string