Use std::to_wstring rather than wxString::Format("%d", ...)

std::to_wstring is significantly faster and is a bit shorter.