Coerce columns in data to character vector before indexing