Refs #8962 extractToEOL now used instead of getline

Changed calls to std::getline to Mantid::Kernel::Strings::extractToEOL in order to make sure I don't read in any EOL characters