Percent-encode slashes in logging file names.