vigenere: use strings and approxPeriodLength