Workaround for int/char conversion on Windows.