Purification of carbohydrate-containing effluents