fixes the issue where \n followed by a link causes URI::InvalidURIError: bad URI(is not URI?)

Hi Alex, I know it is sort of an edge case and one probably shouldn't dump strings from database directly in html without replacing \n with &lt;br/&gt;.. But it did manage to break our app at one point. Thought it would be nice to have.