While RT #46130 ("Drop dependency on libxml2 and libjson") will likely be rejected, it introduces a useful new function, isc_buffer_printf(), which should be added to the source code nevertheless.