This newline removal is synced from mozilla-inbound