Update index dumper function to handle speaces in schema names