fix behavior of File.readlines which was removing the trailing \n whereas official ruby code keeps them