Try to use just one write for the line and the CRLF.