Ability to change charset of the request

Hi, this patch allows to send data with encoding different than default (UTF-8).