jobutil: Add a couple of string processing utilities.

these will eventually let us convert the urls from disco:// and dir://
to http://.