char or wchar_t, not both

Remove wchar-code that was introduced by a failed code replace.