conn: fix potential crashes, print utf, more assert

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>