Implement NewLineWriter ensuring proper line endings based on platform. #3.