Change Content-Length header computation to be based on a number of bytes, instead of a number of characters (which is not always the same, e.g. with accented characters)