Content Type Bugfix

Fixed issue to properly set the response Content-Type when the default
encoder is used.