fix for multibyte string