Use reference to alphabet instead of '1'.

Line 34 replaces leading zeros with ```alphabet[0]``` so line 60 should perform the inverse operation. This is only an issue if alphabet is modified.