encodeQueryString allows non-string values