Fixes base64 decoding