make scanner work with unicode files