Use BytesIO instead of StringIO in CouchManagerApi.get_resource_content()