adopt the windows platform for \r\n or \n