Ionization toward the high-mass star-forming region NGC 6334 I