stream.StreamProcessIO: Work around sh behaviour.

sh will give us a unicode object instead of bytes
if it's able to decode the bytes to unicode, so
we must convert it back to bytes.