Remove unused local variable
Add compatibility for wx2.8 Unicode builds

Code will still work with ANSI builds, but Unicode-enabled is
how most distros Linux ship wx I think (I'm not a wx expert though).

I think this all becomes unnecessary again in wx3.0, where everything
is unicode and these upconversions mostly become implicit, but at
present 2.x is still pretty widely distributed.