file_like.encoding can be None.
It is specifically if stdout or stderr is just a regular open file, i.e. open("foo", "w").encoding == None.