It functions via blood buffering with bicarbonate. The enzyme carbonic anhydrase maintains the equilibrium between bicarbonate and H2CO3. This is, in turn, converted into carbon dioxide and water.
< Electrolyte disturbances>
http://faculty.stcc.edu/AandP/AP/AP2pages/Units21to23/ph/buffers.htm