Reconfigure the text stream with new parameters. This also does an implicit stream flush.
io/TextIOWrapper.reconfigure
TextIOWrapper.reconfigure