response encoding