JDBC providers should have an option to escape data

Description

The various JDBC providers (Groups, Users, etc) produce database-based identifiers for groups.

These can include characters that are prohibited in certain contexts, such as whitespace in JID nodes.

To alleviate issues caused by this, the providers should get an option to escape characters that would otherwise be illegal to use.

The most obvious method to re-use for this purpose is org.xmpp.packet.JID#escapeNode

Environment

None
Fixed

Assignee

Guus der Kinderen

Reporter

Guus der Kinderen