Canonicalizes text to a specified EOL/EOF convention, repairing any 
'mixed' usages
