Fix & improve StartTLS XMPP support