Fix regression in chatlog with newlines

When we receive text from the network, newlines will already be included.
When we receive text from the user, we usually will not have the newline,
so we should append it.