use crate::*;
/// Checks if the given byte slice is valid UTF-8.
///
/// - `data`: The byte slice to validate.
/// - Returns: `true` if the byte slice is valid UTF-8, otherwise `false`.
/// Converts a byte slice to a UTF-8 string or provides a fallback message.
///
/// - `body`: The byte slice to convert.
/// - Returns: A `Cow<'_, str>` containing the UTF-8 string if valid,
/// otherwise an owned string indicating the binary data length.