--- a/branches/yubico2_2/src/ui/wxWidgets/passwordsafeframe.cpp
+++ b/branches/yubico2_2/src/ui/wxWidgets/passwordsafeframe.cpp
@@ -1191,7 +1191,7 @@
   CSafeCombinationChange* window = new CSafeCombinationChange(this, m_core);
   int returnValue = window->ShowModal();
   if (returnValue == wxID_OK) {
-    m_core.ChangePasskey(tostringx(window->GetNewpasswd()));
+    m_core.ChangePasskey(window->GetNewpasswd());
   }
   window->Destroy();
 }