> encodeURIComponent() > > Not really sure, just kind of throwing things out there, I'd try those or > Base64 encoding using > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/Base64Encoder.html
If you Base64 encode it, you'll just need to remove the last "=" character before sending it. When you receive the string, add the "=" character onto the end before you decode it.