Fix for alphabets of 256 characters.

Also, panic if given more.