Fixed TLS support in XMPPStream