Removed assert for wrong charset
Removed use encoding available only in py3