commhistory (for the most part) compares URIs case-insensitively, although it's somewhat inconsistent about this (and everything..). Might be worth doing that here?