Adding response encoding