ensure fullpath is utf8