fix disabling content-length header
[#66] fix content-length computation on IE8

use a global match() instead of split() to compute the size of UTF-8
strings