note that treating all base64 values as binary is bad