Add some encoding to stomp-oriented messaging.
Force TorqueBox JSON codec to use as_json if it exists.