Pass XmppClient CertificateErrorToString independent of ConnectionErrorToString to JS using D2264 / rP22856, refs #4482.
This also allows making the enum to string functions static, refs D2271.
Differential Revision: https://code.wildfiregames.com/D2274
Tested on: clang 8.0.1, Jenkins