fix utf8 convert in windows app, fixes #992