Fixes sanitizeSQL proc

Resolved an issue where an extra character was being removed.
Merge pull request #6244 from JimTheCactus/LibraryFix

Fixes sanitizeSQL proc