Hive partition path may contain special characters, need to encode it before creating a URI object based on the file path.