handle URLs and absolute/relative URIs of the item URIs correctly