Charge-changing reactions of secondary fragments produced in high-energy heavy-ion collisions