fix broken multibyte words