http: optionally extract charset parameter from content-type