Adjust signature of Cookie.serialize. See #690.