fix af8acd8e for backwards compatibility (R < 4.0.0)
- while unique() used on factors returns the factor levels, c() does not, breaking REMIND for older R installations (i.e. the cluster)
- forcing character vectors with as.character(unique()) solves this