For #3, I have now working export with the right encoding, correct de-htmlentitizing, and a good way to filter effective posts out of attachments
made sure the UTF-8 constant was always the same
Some work for #6