fixed non-utf-8 text issue