Fix DAO to properly enforce desired collation

https://issues.civicrm.org/jira/browse/CRM-15085
Merge pull request #3799 from routinet/patch-1

Fix DAO to properly enforce desired collation