fix the base64 encode/decode functions