fixing bug #4288 by escaping characters