base64_convert: fix #968