UrlBuilder: more error cases are handled. (contributes to #17)