Fix encodeQueryString for bool, datetime, and uuid