Dial Pattern - Removing Spaces

I’m using Twilio as a trunk provider, and the number needs to be an E.164 formatted.
As a result I’m getting errors from them when I try and call a number that’s stored in Android contacts, as it is stored as +1 XXX–XXX-XXXX, this means that they’re receiving it as +1%[email protected]
Is there any way I can remove these characters in the dial plan or otherwise in FreePBX?

In the outbound route, have you tried a match pattern of "+1\ " with a prepend pattern of “+1”?