Support stable identifiers from [MSC1772](https://github.com/matrix-org/matrix-doc/pull/1772).