Added bodyEncoding option