You could use a dictionary object and make a conversion table. Instead of adding each key,value pair individually I would do it all at once with the "load" action of the dictionary object to load a JSON string.
I have the opposite problem in Construct Classic. I have to convert one-character strings to their ASCII values; 0 -> 48, A -> 65. How could I do this without having to create dozens of comparation events?