Python 3 porting guide: str.decode does not exis; str.encode was meant