Set writing file in binary mode.