Fixing base64 encoding not working issue.