This fixes #7375.  I just added an encode function to it.
Work on bug #7360.  Moving more towards the PID working.