Convert from UTF-16 to UTF-8 and replace DOS line endings.