Ampersand in SMS message cause partial send failure

When using SMS in HTTP mode if an ampersand (&) is put in the message the sms is not received as expected.  As the ampersand is treated as a query separator. 

Example with message: hi bob and mary / hi bob & mary

non ampersand in message: https://smsProvider.co.uk/send.aspx?to=01234567&message=hi bob and mary&from=999999
recieved: "hi bob and mary"

ampersand in message: https://smsProvider.co.uk/send.aspx?to=01234567&message=hi bob & mary&from=999999
recieved: "hi bob "

 

Bug #10389