trim title when parsing feed

XML elements may contain whitespace and even
newlines that would mess up the title display
in various places
escape newlines when generating js

Newlines are not allowed in JavaScript string
literals. If the title contains any the browser
(or dojo parser) throws a SyntaxError and the
unsubscribe button doesn't work.