Replace newlines in URIs by a single space

This fixes BAD URI problems when infoboxes titles contain newline
characters.