Added very rudimentary content-length calculation that is probably wrong, as whitespace was a stumbling block for Chrome version. Rightness can be checked later. Fixes #10