convert path encoding from UTF8-MAC to UTF-8 in MacOS