Rename anchor IDs not to contain spaces