added utility function safe_table_name