Here's a preliminary draft patch to add support for UTF-32 and UTF-16 references to our grafting code. I haven't yet measured the efficiency impact of these changes, but I suspect it's not too bad. I'd be curious to know whether it fixes the Nyxt graft. Mark