add content-type parameter for char-stream data in multipart/form-data

add content-type parameter for char-stream data in multipart/form-data &
fix bug of writing wrong last boundary