Reworked unicode stripping to support QuickMessage dialog