Set String encoding to when returning response from Jooby servlet.  Fixes issue where special character in response entity caused malformed json to be returned from the servlet endpoint.
@@ -221,7 +221,7 @@ public class PluginResource extends JaxRsResourceBase {
}
return Response.status(response.getStatus())
- .entity(new String(byteArrayOutputStream.toByteArray()))
+ .entity(new String(byteArrayOutputStream.toByteArray(), "UTF-8"))
.build();
}
