Added codepage support.

Also changed some diagnostics messages.
the supportsCodePage check is redundant here right?  You already checked for it in tc.ts?