Cipher fix for treating properly zero-size input strings