so my vigenere cipher seems to work for uppercase letters but for some lowercase letters, it returns � for some reason. The code for lowercase and uppercase is structurally similar therefore I don't know why this is happening so I would appreciate if anyone has any input on this. 

[code snipped per Honor Code.  In the future, please describe using pseudocode.]