fix ccalls using wchar_t, for #2901