Convert for compatibility with Guzzle 4.x/5.x.