/** * @param string $value * * @return string */ protected static function _detectEncoding(&$value) { return UTF8::str_detect_encoding($value); }