Other logfile loading to cope with weird newlines

Also pop each line off the line array so we can properly encode the characters, otherwise everything acts weird for some reason.
Merge pull request #92 from Didero/patch-1

Other logfile loading to cope with weird newlines