vectorize urlEncodePath. fixes #7