I immediately though of that Pete and Pete episode too! I would imagine it would be difficult or impossible to find a chemical that would react with urine, but not sweat or other stuff coming off your body, that would be safe to swim in.
This will exclude people that don't drink zero calories soft drinks tho...