More unicode/UTF8 translation for WIN32, and better CriticalFailure handling

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Unnecessary extra NUL terminator.

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>