Decode in other encodings

ref #6