Bug 818014: strip null bytes in document titles when setting the chrome window's title, since some platform nsWindow::SetTitle implementations don't handle them correctly, r=dolske

--HG--
extra : rebase_source : 1e161ed51b2cd1c8125982341878f454d8cd2339