code: public static function sanitizeUTF8($value)
      {
          if (self::getIsIconvEnabled()) {
              $value = @iconv('UTF-8', 'UTF-8', $value);
  
              return $value;
          }
  
          $value = mb_convert_encoding($value, 'UTF-8', 'UTF-8');
  
          return $value;
      }
docs: Try to sanitize UTF8, stripping invalid byte sequences. Not perfect. Does not surrogate characters.
  
  @param string $value
  
  @return string