Ensure that unicode content is wire-safe by  setting the contentEncoding of the message

The current code fails when creating a celery task which contains unicode characters. This ensures it works in that scenario.