Switching to sprintf for URL composition