Changed ASCII log parsing of 'e' and 'E' to be floats.

Also refactored some code and left out the use of toAscii(). This will simplify transition to Qt5.