Fix encoding issues & finish example server that respond with received messages.