fix stringToC so it is parseable again