Added encoding of fetch.