Fixed my email address
Added encoding of bytes type to compatibility with Python 3, allows encode data as b'foo'. (AlexKavanaugh)