fix invalid %m format crash in wide scanf variants