Suport non ascii filenames when tab-completing.

The script would crash if you have a file named with non-ascii
characters (accents, for exemple, are fairly commom dependending on your
locale) and this file was tab-completed.