don't creash when receive unicode object from nbxmpp (which is the case in python23 branch