Bug #5861 getString on a file causes out of memory