Fix base64 decoder