Removed restriction on length of encoding name
Tweaked encodings list to be NULL-terminated