Acid and sour gas treating processes