[Mac] Fix path encoding problem in wt-monitor.