core: move strip_irc_formatting to Bot module