Added handling where NSURLResponse textEncodingName is nil