Update path util methods to deal with space character in url