when simplifying a charcter vector, map null to NA as we do for numeric vectors