open file in universal newline mode