Very minor fixes to ResolveURI, handled exception better and fixed typo
";;"