Removed pathEncodeData function from Utils