Message 205688 - Python tracker
> I'm closing the issue as invalid, because Python 3 behaviour is correct > and must not be changed. The fact that write() uses sys.getfilesystemencoding() is either a defect or a bad design (I leave the decision to you). But I'm still missing a reply to my suggestion. As I'm seeing it has no disadvantages to give the developer optionally the control.