Fix a Unicode filename bug affecting Leex and Yecc

A bug where Unicode filenames combined with Latin-1 encoding could
crash Yecc and Leex has been fixed.