Fix for hash mismatch when parameters contain special chars.