record_render: fix buffer overrun
record_render: fix buffer overrun

This appeared as charset=.. being ignored for base64 conversions,
but could also be giving SEGVs.

dcrossleyau/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,dcrossleyau/yaz,nla/yaz,nla/yaz