In order for parse to work with files having Windows line endings (\r\n) I had to replace with \r before parsing.