Handle Content-Types with encodings in XHR requests.