Handle end-of-buffer inside \r\n.