Cleaned up file newline handling.