Fixed a bug in the frame encoder where a 4 byte integer was written for the content-length
rather than a String number.