Had the same issue in DDNet long ago, fixed it like this: https://github.com/ddnet/ddnet/commit/079d92c3e7420ade0cf11a28607f690d4956f603
Not sure if this is the best approach here since your MAX_VOTE_OPTIONS is too small for DDNet7 servers. Could iterate over the options a second time with the same filter to do the lookup of the actual number to send to server.