make # and % work in wide char version