Generalize `encode`
Documentation: mention 'for cat encode'