handle long case names
Merge pull request #4429 from dimagi/longname

handle long case names