[fix] use the valueEncoding option and default to json