write back with unix newline