macosx: fix potential string format attack
macosx: fix another potential utf8 displaying issue in core dialogs