You're right I had missed the case where the first line would contain a \0 before \r\n\r\n