Allow setting of accepted content encodings and charset (issue 6).