fix content-length computation for UTF-8 strings

fixes #44
Merge pull request #45 from jmesnil/utf8_size

fix content-length computation for UTF-8 strings