tag and mention handling in private mail (which required refactoring the bbcode cleanup stuff in mod_item)