fix UTF-8 decode bug