Use binary encoding comparison to handle dummy encodings

* Add a test for non supported encodings