properly parse case-sensitive URLs