IO#gets uses fgets instead of getline