Bug 8015: (follow-up) trap exceptions thrown by SetUTF8Flag()