&nbsp; html entities is now translated like space in titleToIdentifier function

before this patch:
```
foo bar => #foo-bar
```
but
```
foo&nbsp;bar => #foobar
```

With this patch:
```
foo bar => #foo-bar
foo&nbsp;bar => #foo-bar
```