#24: Encode text matching key and value