Run serialized data through base64_encode()

To avoid unserialize "error at offset" errors.
http://www.jackreichert.com/2014/02/02/handling-a-php-unserialize-offset-error/