Fixing the new line bug.

I started using this library to connect to bitlbee via irssi proxy.  I found that no events were emitted.  After some debugging I found the culprit that you can see in the diff.  \r seems to be trimmed anyway from the lines so it should be safe and fine to split only by \n.