Properly handle atom keys in kw_list_to_string