convert use of URI to string in models

for discussion
I don't think thats good enough to compare URIs - case sensitivity in host name etc. For comparison we probably need to convert to URI first (since we don't want to rebuild all that logic).