algos_enc: padding fix

I have indeed heard that everyone always fucks this up and therefore
kindof hoped to make an exception. Lasted two minutes.