externalprocess.py: Don't use bytes() for encoding in Py2.