Refactor code to allow special characters in list names.