added setEncoding to request
Merge pull request #1 from artzhuchka/patch-1

added setEncoding to request