Add StringNotMatchingSetCapped as a replacement of size/exclude-list restricted sscanf
Fixes redmine #2626 getindices should not truncate its keys beyound 127 chars
Fixes redmine #2698 strings larger than 2048 and up to 4096 can be added to files
Merge pull request #785 from jeffali/temp/2698_2626_2

Fixes #2626 and #2698 (strings size limits were hardcoded in sscanf call)