fixed erratic `fmt` behaviors with format specifiers. (rust-lang/rust#15934)