make sure to always use \n as line terminator when we send messages to
the server