ecmascript/http: Add convertFromEncoding() to response object

Fixes #2370