Potabilization of water and process water