pub fn mb_check_encoding(s: &[u8]) -> bool
PHP mb_check_encoding($value, 'UTF-8') on a string: strict UTF-8 (no overlong forms, surrogates or code points above U+10FFFF).
mb_check_encoding($value, 'UTF-8')