Write test to ensure parameters are encoded when replaced as part of the URL.