Added normalization for line endings