Encode replaced parameters.