davstorage.js attachments id are no longer changed

If you put {
  "_id": "a.b",
  "_attachment": "compressed.tar.gz",
  "_data": ...
}, the backend will write "a_.b.compressed.tar.gz"
instead of "a_.b.compressed_.tar_.gz"
check and repair added to davstorage.js