Specify text vs binary mode for opening files.