Set the external encoding of the body StringIO on 1.9.