Simplify: use wrbuf_cstr to get a NUL-terminated string out. xfree works