Implemented CanonicalizeUri() to better recognize local URIs and fix issue 83.  Enough tests pass.