Escaped apostrophe in Lookup field - SC9.4.028

After upgrade to SC9.4.028 all looklup fields with string type generate a wrong SQL statement.

Example:

select name from users where id=’{user_id}'

is converted into :

select name from users where id=\’{user_id}\'

where a backslash is added to the string delimiter apostrophe
causing an SQL error in IBM DB2