Fix multi-byte characters are garled in xhr-polling.