Improved verification of DOM string IRI (github issue #2).