backport r67325: make FileIO.mode always contain 'b'
4 files changed