Yo I kept getting issues with some special characters trying to be read, so here is an improved version of the make_clear function, which relies on RegEx instead of replacing:
func make_clear(text: String) -> String:
var regex = RegEx.new()
regex.compile("[^A-Za-z0-9 ]+")
return regex.sub(text, "", true)