Deduplicated the list of invalid characters