fix content-length

Previous implementation send characters and not bytes as it should.
Merge pull request #1 from dcharbonnier/master

fix content-length