Fixed param encoder decorator to be API compatible.