When to use encode and decode in Schema - Effect Community