BBCode formatting issue when migrating from Vanilla to Discourse

There is a section of the importer that replaces stuff in the original posts with . . . different stuff. You want to make it convert [b] → <b> and [/b] → </b>. Like that.