Normalize the URI before using it.