Fix for non-latin characters when using Rename on Save option.