Fix filename normalization to be able to make best-effort normalization for nonexistent files.  If this doesn't produce optimal results, we may want to ensure we log after file creation in all cases instead of before.