Fix auto-rename ranges with special characters (#13719)

Release Notes:

- Fixed ([#13551](https://github.com/zed-industries/zed/issues/13551)).
0eb26d29eeKrzysztof Witkowski committed on 7/1/2024, 9:58:10 PM· committed by GitHubparent3a43adb
1 file changedLine totals unavailable