Added response encoding in mock Request