a util class for uri process