Added utility function for converting relative URLs to absolute URLs.