add xep0047 in-band bytestreams
fixed bugs