raise an error when alphabet.length > 256