fix unicode error when printing file names (tk entry returns unicode when string is not ascii)