Fix bug in spacegroup to string method.