### Godot version

4.0 beta17

### System information

Windows10

### Issue description

call `"".split()`
Is there an infinite loop inside? Function does not return.

### Steps to reproduce

"".split()

### Minimal reproduction project

N/A
#ifdef WINDOWS_ENABLED
	
	parse_utf16((const char16_t *)p_cstr, p_clip_to);
#else
	
	copy_from((const char32_t *)p_cstr, p_clip_to);
#endif
}
void String::copy_from(const char32_t &p_char) {
	if (p_char == 0) {
		print_unicode_error("NUL character", true);
		return;
	}
	if ((p_char & 0xfffff800) == 0xd800) {
		print_unicode_error(vformat("Unpaired surrogate (%x)", (uint32_t)p_char));
	}
	if (p_char > 0x10ffff) {
		print_unicode_error(vformat("Invalid unicode codepoint (%x)", (uint32_t)p_char));
	}
	resize(2);
	char32_t *dst = ptrw();
	dst[0] = p_char;
	dst[1] = 0;
}
void String::copy_from(const char32_t *p_cstr) {