re-added support for utf-8 for python 3 and fix pm

utf-8/unicode was ignore by the bot cause utf-8 crash it,

now if the bot run on python3. the bot would read it
if it run on python2, it will continue to ignore it

and fix the pm connecting