PROTON-746: Fix encoding a Ruby symbol into a message body.

The symbol needs to be converted to a string before being encoded.