About encoding in QQ

I can use the IM gateway for QQ

But when I sent messages to QQ users or received from them,

all messages are in a mess just as encoding problem.

Since QQ uses GBK as default and I think Openfire is using UTF8, what can I do then ?

Thanks for your help ~