Improved URL filtering. Replace new lines chars with a single space.