Set Content-Length correctly for multi byte files

When inserting (or not inserting) the snippet for html files
containing multi byte characters, the content-length should
be calculated using Buffer.byteLength instead of string-length

This is the ground reason for issue yeoman/generator-webapp#13