Implemented generic convert_to_string routine

Removed older unimplemented string processing functions from process-strings.c
Implemented tagged union to store tagged data types
Update write-data.c to use new generic conversion function