Rename sanitize() to irc_sanitize().
Calculate sanitize table once at top level.