IRC format and string handling helpers.