Changed over to using self.im.outbound for the outbound messages. Fixed regex. Made normalize function more portable.