public function utf8($value, array $options, $mode) {
        if ($mode === self::TO && $options['encode']) {
            return utf8_encode($value);
        }

        if ($mode === self::FROM && $options['decode']) {
            return utf8_decode($value);
        }

        return $value;
    }