Change cookie serializer