Passed buffer encoding to calculate Content-Length correctly.
Merge pull request #21 from getfatday/fix-content-length

Pass response encoding to calculate Content-Length correctly.