Handling new line endings.

The new server uses \n instead of \r\n.