Fix for Python 3: string encode and decode.