[core] Make sure text is unicode when we put it in the flood protection stack