Prevent SOQL injection issues from single quotes and backslashes.

This injects quotes and backslashes when values with potential SOQL injection are present.