Replaced EscapeParam by GetQuotedParam so that unicode quoting works for everything.

The reason I changed object to string argument was since needed to be used by 'like' and then string is more logical.

I also deleted EscapeParam, since not used anywhere and I personally think that the surrounding quotes belong to the escaping, since the escaping and the quotes might depend on each other.