fix some base64 encoding cruft