Thermally stable sulfide scavenger