lib: move IRC formatting strip to String