Use iconv(3) to convert data received from IRC into utf-8 before sending it over XMPP
In the worst case, if the IRC encoding cannot be detected, replace invalid bytes sequences by the � character
(from redmine: created on 2013-11-07, closed on 2013-11-12)