Copy terminal path does not escape exclamation marks

Not that big of a deal but I just noticed that when I copy the terminal path of a file which has an exclamation mark in them they won’t get escaped and result in an error when pasted into the Terminal.

~$ ls /Volumes/Such\ Data!/foo
-bash: !/foo: event not found

It should be:

~$ ls /Volumes/Such\ Data\!/foo