Always encode a parameter's value (if needed).

fixes #468