Fix encoding of % character for LIKE operator