src/cod: check for \r\n in outgoing lines. Closes #17