Pion condensation during the hadronization of the quark-gluon plasma in ultra-relativistic heavy-ion collisions