Fixed #20462 - Replaced the str() cast introduced in 273dc55 by force_text()
Merge pull request #1308 from loic/ticket20462

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