proper parsing of strings

Note that CHAR actually appears to do different things in OSX and Windows ...

Need to build a separate codepage converter