Converts the EOL and EOF conventions in the passed string to a canonicalization form that handles 'mixed' EOL conventions.