fixed base64 decoding