encoder: allow to encode keywords