Does there exist a command line utility to check for and ideally fix grunge in text files? e.g.
Inconsistent or non-native line endings (lf vs cr/lf)
Extra whitespace at end of lines
Spurious byte order markings (Visual Studio sometimes inserts these, even though they are neither necessary nor desirable in UTF-8 files)
And possibly other things I hadn't thought of? (Closest I can find so far is something called tab2space, but the primary function of that is as it says on the tin, to expand tabs, and that's something I don't want.)