Being representable by algebraic spaces is local