CDB-2737 fixed by detecting the error and properly reporting it instead of screwing huge data imports due to the slowness of each_char
CDB-2735 fixed failing spec and found cyclic require and removed it
Merge CDB-2735 into release/2.13.2