Better compare of encodings