Fixed function safe_index_name