Adds base64 encoding to deal with 'unserialize(): Error at offset'
issues.