add charset to content-type header field
get better content length