Experimental investigation of the effective charge state of ions in beam-plasma interaction