CheckIO: Fixed false positive when using wchar_t (#5051)