Raise KeyError rather than TypeError when passing in 20 or 40-length
unicode object to Repo.__getitem__.