### 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
String ret;
	ret.parse_utf8(p_utf8, p_len);
	return ret;
}
Error String::parse_utf8(const char *p_utf8, int p_len, bool p_skip_cr) {
	if (!p_utf8) {
		return ERR_INVALID_DATA;
	}
	String aux;
	int cstr_size = 0;
	int str_size = 0;
	
	if (p_len < 0 || p_len >= 3) {
		bool has_bom = uint8_t(p_utf8[0]) == 0xef && uint8_t(p_utf8[1]) == 0xbb && uint8_t(p_utf8[2]) == 0xbf;
		if (has_bom) {
			
			if (p_len >= 0) {
				p_len -= 3;
			}
			p_utf8 += 3;
		}
	}
	bool decode_error = false;
	bool decode_failed = false;