Fixed parsing problem caused by non breaking spaces

Now removing whitespace before email header titles. DovetailSoftware/agent#880
Added some help for toStringing parsed history
Fixed broken tests and writelines