Properly handle CRLF
Test exceptions in separate test