Support Unicode data to be sent to GH as data

Hi Mike,

Looks like when you create a commit with the GH library (against GH API) with eg. `汉语` (Chinese) or another non-ascii chars `Testing «ταБЬℓσ»`, the Content-Length is wrongly counted (String.prototype.length = chars length, not Byte length).

And this fixes it.