Fixes redmine #2698 strings larger than 2048 and up to 4096 can be added to files