Modified path constructor to URI.escape remote attribute values