Mechanism of Electrochemical Chloride Removal