format date with dformat
fix date validation in config
move passhistory folder to metadir/_passhistory
encode username with utf8_encodeFN()