WINDOWS: make env.jl and file.jl unicode-complient for #4240, with error-message handling