Fix base64 decoding