Fix a small bug where widechar string failed in an assertion