Added support of response encoding