Auto-fix common screwups in pasted and emailed URLs: extra trailing slashes and spaces