Resolution of the carbon contamination problem in ion irradiation experiments