bug fix for not utf-8 string