gitk: Improve handling of whitespace and special chars in filenames