Allow LoadFileAsItemList to load files with lines longer than 4096 characters

Close #3882