I tried using urlencode here, but it doesn't work. I forget what the exact issue was, but I could only get Kannel to respond properly when using this method.