Add support for custom alphabets