Handle newline characters for messages