Message was not URL-encoded when sent (as "msg" URI parameter) which
could cause issues with some messages (because of spaces).
This commits uses cURL's "--data-urlencode" option for "msg" parameter
so that cURL does the encoding for us.
As a consequence, the script don't have to manually convert newlines (to
$NEWLINE_CHAR) anymore: cURL also does that for us.