Solenoids are widely used to provide initial focusing of beams extracted from an ion source. However, in the case of an electron cyclotron resonance (ECR) ion source, the extracted beam will usually include different ion species and for each of them a wide distribution of charge states. When such a multicomponent beam is focused by a solenoid, the ions with a Q/A larger than the beam of interest are overfocused and usually go through a waist before reaching the analyzing magnet. If the beam currents obtained for these ions are sufficient, the resulting space charge forces can significantly degrade the emittance of the beam components with a lower Q/A and result for those in a hollow beam. Using a beam viewer and an emittance-measuring device, this paper reports on experimental findings that confirm the existence of such an effect for low charge states of argon. Moreover, by changing the experimental conditions of the ECR plasma in order to modify the charge state distribution of the extracted ion beam, it is shown that the threshold where this space charge effect starts to be significant can be changed.