Stop hardcoding supported characters

This isn't exactly the greatest interface for characters, but at least it now works with characters that weren't hardcoded in the program (_e.g._ capital letters).