Why not simply `(k % v).encode()` here?