Make sure to decode the string before sending it as a query, otherwise it'll get double-encoded.