I wish there was GNUbook or something that is run by a non-profit organization like Wikipedia that provides a service that serves as a social ID(think like a portable phone number), and then let people use whichever "messaging service" they like by bringing their ID with them. This way the messaging services become replaceable and users a avoid the network lock-in.
So [matrix] seems to fit the bill: federated network, bridges to other services (like IRC), encryption, you can write your own client or run your own server...
Also hubzilla (nee red/matrix, unlrelated to matrix; descending from friendica which DID federate with Facebook and Twitter for a while, until FB & T closed off the federation API bridges)