Fix urls on cloned documents to avoid overwriting originals

This is the second part of the fix for #9 - this ensures that the new doc doesn't overwrite the original due to having the same url.