fix over-read in %ls with non-wide scanf