Switched to using JSON and base64 encoding for sending/receiving.