url_build function

Builds a URL string from its components.