FIX: Force string conversions to UTF-8 "bytes" (PR #11315)

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/cant-create-poll-with-some-chinese-options/170836/2

Looks good :+1:

Can you also add a test with a poll with Chinese options to ensure it works properly in the future?

Looks like there are trailing whitespaces in the specs. Can you remove them?

Thanks Zog. It’s nice collaborating with you.

Thanks a lot @chenyxuan :+1: