fixed utf-8 decoding bug