defensive newline-stripping from URLs
stripping multi-spaces from url