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.

It seems like the issue have occurred by ruby 1.9+:
https://github.com/blatyo/bencodr/issues/2