Support building of URNs
Fix bug if path was null.