post-review: correctly handle diff uploads, which contains non-ASCII characters
Review Request #1298 — Created Dec. 14, 2009 and submitted — Latest diff uploaded
Previous post-review versions did not correctly generate the Content-Length header sent along with the api/json/reviewrequests/<id>/diff/new/ request as the header's value was calculated based upon the length of the request body in characters instead of bytes. This patch should fix that issue by using the UTF-8 representation of the body for the length calculation.