Fix weird character rendering on Windows with Japanese locale (#20318)