Fix problem with legacy line ends