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

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