Moved encode() up a level to available to all builders.
Moved encode() up a level to available to all builders.
Fixes around encoding string parameters.