Add errors='surrogateescape' handling to newstr.encode()
Add errors='surrogateescape' handling to newstr.encode()

PythonCharmers/python-future,QuLogic/python-future,QuLogic/python-future,michaelpacer/python-future,michaelpacer/python-future,krischer/python-future,krischer/python-future,PythonCharmers/python-future