Fixed issue with length of unicode characters

The Content-Length provided the wrong length in case of content included UTF-8 characters.

This confuses the destination server, which then cannot properly parse the received data as it's corrupted.
Merge pull request #4 from nj/json_utf8

Fixed issue with length of unicode characters