ngcgui: normalize filenames for tilde expansion

when using Ctrl-u etc