add gitignore
the old index has to be open in encoding mode too
test for double encoding of index.db
output to perl scalars must be in octets, apparently; warn if the scalar is improperly encoded
fix output of handle email message so that it handles the new type of scalars and outputs proper utf8
default charset to UTF-8 when it isn't defined