Encode keys into safe filenames
Encoded file names cannot contain a leading dot

This avoids db keys "." and ".." causing trouble.