Tentative fix for #77 and #154. The only problem I see with this fix is that it uses an internal type (com.jayway.restassured.internal.http.ContentEncoding) in the public API : could this type be moved outside the internal package ?