Suport non ascii filenames when tab-completing.

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