perform HTML chunk peservation in UTF-8

reviewed by @jcheng5