Include a Content-Length header with all PUT/POST requests

Fixes #422