use open with 'wb' to preserve \r\n when saving transfert or debit file