If my forwarder bot receives a message containing chars from \x00 to \x1f and tries to forward it, my bot will get kicked by some servers.
It is because that it does not escape those chars to XML sequences from � to .
This is a security problem rather than a feature request, because the bot is having the risk of being kicked. For example, Prosody kicks it with reason XML not well formed.
XML not well formed
The related lines are here.
Please check it and escape those chars correctly.
Filter bad chars for SleekXMPP
Related issue: fritzy/SleekXMPP#249