Length -> Buffer Length, fix for file contains Chinese chars.

Content-Type will be wrong if body has special chars such as Chinese.