Pion production and Bose-enhancement effects in relativistic heavy-ion collisions