Fix a name bug

When file name contains multi-byte char, the http header `Content-Length` will be wrongly set.

I added a file named `test/fixtures/さくら.txt` to reproduce the issue. `"さくら".length` is 3. But the real byte code length is 9.