add support for application/json as Unicode text

This patch allows application/json responses represented as Unicode text to be encoded by the publisher.