Allows to encode/decode String and bytes using a power of two base dictionary.