Encoding support with api method

Corrections about charset problem in post type . Modifications supports 'withCharset("charset")' with UTF-8 default and problems around ".as("application/type;charset=utf-8")" method when charset is forced with the application type