Suggest GetCanonicalLinkPath and moving the Uri.IsWellFormedUriString check inside the function.