Update cookbook/security/entity_provider.rst

Make serialize() example more explicit.