Repository: gohugoio/hugo (language: go)

Issue:
hugo server fails to refresh when filename includes NFC characters in MacOS
I'm using hugo inside a Dropbox folder in MacOS.
Dropbox renames a NFD Unicode filename to NFC automatically.
And when the filename includes NFC characters, hugo fails to refresh the content.

```
$ hugo new posts/ü.md
/Users/ironsand/Dropbox/www/mysite/content/posts/ü.md created
$ hugo server -D --disableFastRender
# edit the file here
# -----------------------
Change detected, rebuilding site.
2021-04-16 18:42:33.639 +0900
Source changed "/Users/ironsand/Dropbox/www/mysite/content/posts/ü.md": WRITE
Total in 144 ms
```
hugo detects when the file changed, but the change doesn't appear in the browser.

### What version of Hugo are you using (`hugo version`)?

<pre>
$ hugo version
hugo v0.82.0+extended darwin/amd64 BuildDate=unknown
</pre>

### Does this issue reproduce with the latest release?
yes


Discussion / hints:
As a workaround you can ... rename the file.

Related to issue #2203 , and commit 39df772 if `norm.NFC.String(name)` is removed it works correctly (I'm working on this issue, first time contribution)

Fix patch:
diff --git a/hugolib/site.go b/hugolib/site.go
index dce4b8d2548..91fc1fe801a 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -24,12 +24,14 @@ import (
 	"path"
 	"path/filepath"
 	"regexp"
+	"runtime"
 	"sort"
 	"strconv"
 	"strings"
 	"time"
 
 	"github.com/gohugoio/hugo/common/types"
+	"golang.org/x/text/unicode/norm"
 
 	"github.com/gohugoio/hugo/common/paths"
 
@@ -956,6 +958,10 @@ func (s *Site) filterFileEvents(events []fsnotify.Event) []fsnotify.Event {
 			continue
 		}
 
+		if runtime.GOOS == "darwin" { // When a file system is HFS+, its filepath is in NFD form.
+			ev.Name = norm.NFC.String(ev.Name)
+		}
+
 		filtered = append(filtered, ev)
 	}
 


Test patch: