Support for other encodings

Also make simple specs