Arbitrary encodings support