CRM-14842 decode utf prior to checking strlen
comment fixes
Merge pull request #3487 from eileenmcnaughton/CRM-14842

CRM-14842 fix string validation