str2wcs_internal is one of worst hot paths in the codebase, and this particular check can be optimized away for non-macOS hosts at compile time.