The bug occurred when the encoded surrogate character is passed to the incremental decoder in two chunks.