Quantum quasi-symmetric functions and Hecke algebras