Fixing the new line bug.

I started using this library to connect to bitlbee via irssi proxy.  I found that no events were being emitted after I connected (even though the IRC messages were going back and forth on the socket).  After some debugging I found the culprit that you can see in the diff.  After the change the events emit just fine and I can use the library.

\r seems to be trimmed anyway from the lines so it should be safe and fine to split only by \n.