change file opening from binary to universal line ending