Water UV-shielding in the Terrestrial Planet-forming Zone: Implications for Carbon Dioxide Emission