fix unicode decoding bug