Fix base64 decode of data