@property<EOL><INDENT>def encoding(self):<DEDENT>
if self.redirect is not None:<EOL><INDENT>return self.redirect.encoding<EOL><DEDENT>else:<EOL><INDENT>return super(TeeStringIO, self).encoding<EOL><DEDENT>
Gets the encoding of the `redirect` IO object

Doctest:
    >>> redirect = io.StringIO()
    >>> assert TeeStringIO(redirect).encoding is None
    >>> assert TeeStringIO(None).encoding is None
    >>> assert TeeStringIO(sys.stdout).encoding is sys.stdout.encoding
    >>> redirect = io.TextIOWrapper(io.StringIO())
    >>> assert TeeStringIO(redirect).encoding is redirect.encoding