Sanitize username used for constructing log filenames.

On Windows, os/user.Current may return a username containing a backslash.