add option to specify available encodings

closes #25