fix unescaping of entities straddling 4K byte boundary