UTF-8–aware escaping in XML todo.