Added code to normalize EOL from parsed text files.

This is needed to properly be able to parse and diff text files
on windows.