public SafeUri(Uri uri) { if (uri == null) { throw new ArgumentNullException ("uri"); } this.uri = uri.AbsoluteUri; }