Account for CRLF when evaluating string length; fixes #16