Fixed #20462 - Replaced the str() cast introduced in 273dc55 by force_text()