I actually use 'dos2unix.exe', which ships with Cygwin - though I didn't install Cygwin just for that tool (nor would I recommend doing so).
Despite the general warnings about "re-inventing wheels", there's no denying that one does learn more from doing just that, than from simply using pre-existing tools (as you well understand :-)