update \n by \r\n for windows