I used to live in a place with really dodgy water. Whenever we needed anything like this, the first thing we did was boil up some rice, then drink the water the rice was cooked in. Was quite thick and starchy. Kind of tasted like porridge, but alawys had to drink it while pinching my nose. Usually did the trick pretty fast.