allow response encoding to be null