vectorize urlEncodePath. fixes #7

This fixes the problem with having mutiple scripts/styles in a dependency. I have tested it with a limited number of examples and it seems to work well.
Already resolved. :-) https://github.com/rstudio/htmltools/commit/0c1f59a49743d288a1ac0b3c3449dc39402e845a.