skip duplicate encodings

* filled letter -> encoding map completely
* added code to ignore duplicate encodings