Strip URL query before logging