code: public static String resolveUrl(String baseUrl, String url) {
  		String resolvedUrl = resolveUrl(baseUrl, url, null);
  		if (resolvedUrl == null) {
  			resolvedUrl = url.replace(" ", "%20");
  			resolvedUrl = resolvedUrl.replace("\r", "%0D");
  		}
  		return resolvedUrl;
  	}
docs: Resolve URL, but return a minimally escaped version in case of
  error
  @param baseUrl the base URL against which the url should be resolved
  @param url the URL, possibly relative, to make absolute.
  @return url resolved against baseUrl, unless it is absolute already, and
  further transformed by whatever escaping normally takes place with a
  UsableURI.
  In case of error, return URL.