If it is the same problem as in that thread then it is the OAuth 2 issuer that must ensure the state parameter is URL encoded, so you would need to contact them.
There are more details about the parameters Moodle expects in this reply and this reply.