fix invalid %m format crash in wide scanf variants

the wide variant was missed in the previous commit.