Better fix for Issue #2

The last update was a bit hacky.  I have found that the root cause
russian and other languages was due to an error in the calculation of
the content length.  The content length is now calculated correctly
while continuing to properly encode the post data.