[UI] Change how we convert from DOS to Unix linefeeds.

Avoids calling Perl and might fix an issue being seen by some.