Base64 encode chunked data before dechunking

See http://www.php.net/manual/en/wrappers.data.php#100979