Fix encoding error when debugging stanzas

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Fix encoding of presence status

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>