diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 7af1c2d1898095e1b5f1f0fe908501b3908254bd..c367946a3d3320f20e2c0c0fd9f471a00a26c4f3 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -139,7 +139,7 @@ class ImportSTL(Operator, ImportHelper):
             bpy.ops.object.select_all(action='DESELECT')
 
         for path in paths:
-            objName = bpy.path.display_name(os.path.basename(path))
+            objName = bpy.path.display_name_from_filepath(path)
             tris, tri_nors, pts = stl_utils.read_stl(path)
             tri_nors = tri_nors if self.use_facet_normal else None
             blender_utils.create_and_link_mesh(objName, tris, tri_nors, pts, global_matrix)