Calculate Content-Length of the filtered body

Otherwise lengths will be incorrect when the body is encoded.

As noted in c4a7d7c, updating $body doesn't change what the client will
see.  It _does_ ensure we're looking at the filtered content when
calculating Content-Length, however.
Merge pull request #14 from tsibley/content-length-after-filters

Calculate Content-Length of the filtered body