Function is_valid_utf8

Source
pub fn is_valid_utf8<P: AsRef<Path>>(path: P) -> Result<bool>