Fix "invalid multibyte char" error