fix issue #933 and Windows like line ends (CRLF)