Encode cookie values as gobs.