Make sure that output contains platform-appropriate end-of-line characters