diff --git a/Code/Common/mvdQuicklookModel.cxx b/Code/Common/mvdQuicklookModel.cxx
index 84e4c462013275653c16bd5768f161aacad2f5f5..94b3bbeef5d0e336dce0df7e12062acbd0c5fa17 100644
--- a/Code/Common/mvdQuicklookModel.cxx
+++ b/Code/Common/mvdQuicklookModel.cxx
@@ -83,11 +83,11 @@ QuicklookModel
   if ( viModel->GetNbLod() > 1 )
     {
     // get the filename and use it to compose the quicklook filename
-    std::string fnameNoExt = itksys::SystemTools::GetFilenameWithoutExtension( 
-      viModel->GetFilename().toStdString() );
+    const char* filename = static_cast<const char*>(viModel->GetFilename().toAscii());
     
-    std::string path  = itksys::SystemTools::GetFilenamePath( viModel->GetFilename().toStdString());
-    std::string ext   = itksys::SystemTools::GetFilenameExtension( viModel->GetFilename().toStdString());
+    std::string fnameNoExt = itksys::SystemTools::GetFilenameWithoutExtension( filename );    
+    std::string path  = itksys::SystemTools::GetFilenamePath( filename );
+    std::string ext   = itksys::SystemTools::GetFilenameExtension( filename );
 
     std::ostringstream qlfname;
     qlfname << path<<"/"<<fnameNoExt<<"_quicklook.tif";
diff --git a/Code/Common/mvdVectorImageModel.cxx b/Code/Common/mvdVectorImageModel.cxx
index 5fd1f2389d35a82e7d771058e52196a1bfb2b199..7db360a432984c3409a4400083b554dcc812ac03 100644
--- a/Code/Common/mvdVectorImageModel.cxx
+++ b/Code/Common/mvdVectorImageModel.cxx
@@ -511,7 +511,7 @@ VectorImageModel::GetBestLevelOfDetail(const double zoomFactor,
 #if defined(OTB_USE_JPEG2000)
   otb::JPEG2000ImageIO::Pointer readerJPEG2000 = otb::JPEG2000ImageIO::New();
 
-  std::string filename( m_Filename.toStdString() );
+  std::string filename( static_cast<const char*>(m_Filename.toAscii()) );
 
   readerJPEG2000->SetFileName( filename.c_str() );
   if(readerJPEG2000->CanReadFile( filename.c_str() ) )
@@ -569,7 +569,7 @@ VectorImageModel
   DefaultImageFileReaderType::Pointer tmpReader(
     DefaultImageFileReaderType::New() );
 
-  tmpReader->SetFileName( m_Filename.toStdString() );
+  tmpReader->SetFileName( static_cast<const char*>(m_Filename.toAscii()) );
   tmpReader->UpdateOutputInformation();
 
   // Get native image largest region, which is LOD level zero.
@@ -649,7 +649,7 @@ VectorImageModel
 
   try
     {
-    fileReader->SetFileName( lodFilename.toStdString() );
+    fileReader->SetFileName( static_cast<const char*>(lodFilename.toAscii()) );
     fileReader->UpdateOutputInformation();
 
     m_ImageFileReader = fileReader;