Update teradataR-internal.R

Needed to convert a factor type into a character type that was causing a bug when nchar was used with the factor type.