Normalize platform-specific newlines.