Added custom encoding possibilities to http requests/answers.
- Added a virtual function getOutputEncodingType() which allows to customize the HTTP type encoding.
- To maintain compatibility, by default it return utf-8, similar to the hard-coded previous encoding.