Reorder curried signature of `encodeBy`