Fixes an issue with upper/lowercase chars in slugs

Because of inconsistencies in MySQL and PHP with case-sensitivity strings that aren't the same may be matched in one and not the other causing validation to fail.
Merge pull request #2435 from jHoldroyd/patch-1

Fixes an issue with upper/lowercase chars in slugs