Fix endpoint template

That `encode {}` call is raising because `{}` on that context is passed as a block, not an empty hash.