Cleanup line ending