Convert to UNIX-style line endings.
Fix exception handler.