saving files should be done in binary mode