Issue in Passing data to orchestrator via API

We are having issue while passing data to orchestrator via API.
Ex: we are passing data like
First Name: abc
Last name: def
If we are adding above example data it is working fine and We are having issues with passing users to the Bot via the API when the user has an apostrophe in their name e.g a’bc
I have passed the information in many different ways to Orchestrator, via JSON (which allows for apostrophes), escaping the apostrophes, and neither work. we are getting a 422 Error from UIPath!

Just giving an idea, I don’t know whether it will work

  1. Try sending object

  2. .net - Escaping single quote in String.Format() - Stack Overflow