Set encoding for requests.