do not fail on `as.character(NA)`