handle long case names

http://manage.dimagi.com/default.asp?137926