### Godot version

4.0.dev (ba9491f87)

### System information

Windows 11 Chrome 109.0.5414.75 (Official Build), iOS 16.2 Safari

### Issue description

When exporting a simple project for Web with any GDScript like following:
```gdscript
extends Control

```
will print the following error to the console:
```
USER ERROR: U_ILLEGAL_ARGUMENT_ERROR
   at: _is_confusable (modules\text_server_adv\text_server_adv.cpp:6151)
```

![image](https://user-images.githubusercontent.com/173001/214089154-d88f3f44-b670-41ec-9743-30627677968e.png)

For more complex project, following additional errors are showing:
```
USER ERROR: U_FILE_ACCESS_ERROR
   at: _spoof_check (modules\text_server_adv\text_server_adv.cpp:6174)
USER ERROR: U_ILLEGAL_ARGUMENT_ERROR
   at: _is_confusable (modules\text_server_adv\text_server_adv.cpp:6151)
```
When I've inserted `print_line(p_string)` at text_server_adv.cpp line 6172, following logs are collected:
![image](https://user-images.githubusercontent.com/173001/214091164-cb5af630-56d2-446e-b1c4-dc20066565d5.png)

It seems that the identifiers of *.gd files are printed to the console.


### Steps to reproduce

1. Open minimal reproduction project.
2. Exports to Web.
3. Open exported site with Chrome and open developer console.
4. Following error logs will be seen (reproduced): `USER ERROR: U_ILLEGAL_ARGUMENT_ERROR`

### Minimal reproduction project

[text_server_adv_error.zip](https://github.com/godotengine/godot/files/10481582/text_server_adv_error.zip)

_insert_feature("terminal_forms", HB_TAG('f', 'i', 'n', 'a'), Variant::Type::INT, true);
	_insert_feature("flattened_accent_forms", HB_TAG('f', 'l', 'a', 'c'), Variant::Type::INT, true);
	_insert_feature("fractions", HB_TAG('f', 'r', 'a', 'c'), Variant::Type::BOOL, false);
	_insert_feature("full_widths", HB_TAG('f', 'w', 'i', 'd'), Variant::Type::BOOL, false);
	_insert_feature("half_forms", HB_TAG('h', 'a', 'l', 'f'), Variant::Type::INT, true);
	_insert_feature("halant_forms", HB_TAG('h', 'a', 'l', 'n'), Variant::Type::INT, true);
	_insert_feature("alternate_half_widths", HB_TAG('h', 'a', 'l', 't'), Variant::Type::BOOL, false);
	_insert_feature("historical_forms", HB_TAG('h', 'i', 's', 't'), Variant::Type::INT, false);
	_insert_feature("horizontal_kana_alternates", HB_TAG('h', 'k', 'n', 'a'), Variant::Type::BOOL, false);
	_insert_feature("historical_ligatures", HB_TAG('h', 'l', 'i', 'g'), Variant::Type::BOOL, false);
	_insert_feature("hangul", HB_TAG('h', 'n', 'g', 'l'), Variant::Type::INT, false);
	_insert_feature("hojo_kanji_forms", HB_TAG('h', 'o', 'j', 'o'), Variant::Type::INT, false);
	_insert_feature("half_widths", HB_TAG('h', 'w', 'i', 'd'), Variant::Type::BOOL, false);
	_insert_feature("initial_forms", HB_TAG('i', 'n', 'i', 't'), Variant::Type::INT, true);
	_insert_feature("isolated_forms", HB_TAG('i', 's', 'o', 'l'), Variant::Type::INT, true);
	_insert_feature("italics", HB_TAG('i', 't', 'a', 'l'), Variant::Type::INT, false);
	_insert_feature("justification_alternates", HB_TAG('j', 'a', 'l', 't'), Variant::Type::INT, false);
	_insert_feature("jis78_forms", HB_TAG('j', 'p', '7', '8'), Variant::Type::INT, false);
	_insert_feature("jis83_forms", HB_TAG('j', 'p', '8', '3'), Variant::Type::INT, false);
	_insert_feature("jis90_forms", HB_TAG('j', 'p', '9', '0'), Variant::Type::INT, false);
	_insert_feature("jis2004_forms", HB_TAG('j', 'p', '0', '4'), Variant::Type::INT, false);
	_insert_feature("kerning", HB_TAG('k', 'e', 'r', 'n'), Variant::Type::BOOL, false);
	_insert_feature("left_bounds", HB_TAG('l', 'f', 'b', 'd'), Variant::Type::INT, false);
	_insert_feature("standard_ligatures", HB_TAG('l', 'i', 'g', 'a'), Variant::Type::BOOL, false);
	_insert_feature("leading_jamo_forms", HB_TAG('l', 'j', 'm', 'o'), Variant::Type::INT, true);
	_insert_feature("lining_figures", HB_TAG('l', 'n', 'u', 'm'), Variant::Type::INT, false);
	_insert_feature("localized_forms", HB_TAG('l', 'o', 'c', 'l'), Variant::Type::INT, true);
	_insert_feature("left_to_right_alternates", HB_TAG('l', 't', 'r', 'a'), Variant::Type::INT, true);
	_insert_feature("left_to_right_mirrored_forms", HB_TAG('l', 't', 'r', 'm'), Variant::Type::INT, true);
	_insert_feature("mark_positioning", HB_TAG('m', 'a', 'r', 'k'), Variant::Type::INT, true);