Handle non-ASCII chars in path using encoding.