/// Extension trait for encoding paths to UTF-8 strings.
///
/// This is a separate trait from [`Utf8Encoder`](crate::Utf8Encoder) due to Rust's coherence rules
/// preventing blanket implementations from coexisting with specific type implementations.