fix utf8 encoding of jid output