Prolbem with Twillio whatsapp integration

Hey guys, I am very inexperienced and I am trying to to a module to send e a message using Whatsapp Sandbox in Twillio.

I’ve configured the body like this (replacing the numbers for privacy):

To=whatsapp:+5511123456789&From=whatsapp:+1123456789&Body=hello world"

It send’s it to twilio but it gets an error 21211, 21211: Invalid 'To' Phone Number | Twilio

When I go to Twillio log I’ve noticed that it removed the “+” of the number. When I try to run the exact same code on my Mac terminal it works perfectly.

Hello!
The problem is with the + encoding, which is ignored and replaced with a space when sending the request.
Replaces the + in the phone number with %2B.
Example: