Add parameter key to EncodeValues

Bit of an oversight from when the `EncodeValues` feature was originally added - it didn't contain the parameter key! This change fixes that.