public static function setStatus($status) {
    if (!in_array($status, [static::STATUS_SINGLEBYTE, static::STATUS_MULTIBYTE, static::STATUS_ERROR])) {
      throw new \InvalidArgumentException('Invalid status value for unicode support.');
    }
    static::$status = $status;
  }