Fix "invalid read" in keepass format