[NUI] Suppress CA1054 and CA1056 (forced to use Uri) and clean code (#2811)