specify encoding for the Query object

This is related to the ZF2 issue i posted. The Query doesn't keep correctly the encoding durong process.