Add urn validation, see #358