try to get response encoding from the 'content-type' header