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.