Sanitize .libsvm class/feature names before we print them.