Replace invalid utf-8 in irc input