Major bug in escapeString causing all kinds of issues.

Fixed a major bug where characters were being stripped on everything using escape string, this was affecting almost everything on the site (even pictures inserted into the DB being corrupted by missing characters), if you added this and are reading(the stripping of characters) please add another function for whatever purpose it add instead of modifying this function.
Merge pull request #784 from nZEDb/dev

Major bug in escapeString causing all kinds of issues.
merging
Merge pull request #786 from nZEDb/master

Master to Dev
Merge pull request #787 from nZEDb/dev

Merge pull request #786 from nZEDb/master
Merge branch 'master' into brian