Fix string formatting to build on Linux.

Fixes a couple of the notorious " error: cannot pass objects of non-trivially-copyable type ‘class wxString’ through ‘...’" errors