Remove newlines from IRC logging messages to prevent message from being sent prematurely.