URL string helper methods for the browser and Node.js