this should not come from options. read the content type header from the response instead. it has the charset info, if set.