Handling unusual file name characters while printing to the console