The documentation for fileobject.encoding mentions that it can be None, and in that case, the "system default encoding" is used.
None
How can I find out what this encoding is?
You should use sys.getdefaultencoding()
sys.getdefaultencoding()