parse multiline console input
proper utf8 encoding of messages