For repeated URL construction, document whether each value is a path segment or query parameter and use the corresponding encoding method every time. Test spaces, ampersands, plus signs, and non-ASCII text with a known example. Avoid encoding an already encoded value, which can turn % into %25. Inspect the final URL and the parsed parameters in the receiving app. A consistent construction rule prevents subtle link drift between weekly runs.