work around some weird utf-8 related crash