Remove multiple trailing slashes

I’m using a basic EasyEngine WordPress stack.

How do I add a 301 redirect to posts with multiple trailing slashes to just one? My Google Analytics data is all screwed up with one page detected as multiple pages just because of the trailing slashes. And technically, they are being detected as different pages, rather than the same one.

Example redirections: to to

How do I do this via Nginx or whatever? Shouldn’t this be already taken care of by default by EE?