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

endings based on platform. #3.