Change duplicate-detection to compare URIs instead of owner names.

Fixes #1.