make FileIO.mode always include 'b'

#4386 Reviewed by Amaury
8 files changed