change obsolete ~[] to vec!()
fix format string escaping
see mozilla/rust#14810
fixed another occurrence of ~[], convert Vec to slice where needed
fix more format string escaping issues