canonicalize line endings