Bug #5861 getString on a file causes out of memory
Reformatting the code.
Merge branch 'bug-5861' into core-5.14.x