put named character references serialized to Data for ninja compliance