fix non-utf8 gylphs in osx app delegate