diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py
index 025d5bde6d55cb7d00f81011558c1c6accba8fd5..c02ea9548a661f37bf9124463267b1f37f1c92b0 100644
--- a/io_anim_bvh/import_bvh.py
+++ b/io_anim_bvh/import_bvh.py
@@ -98,7 +98,7 @@ def sorted_nodes(bvh_nodes):
 def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0):
     # File loading stuff
     # Open the file for importing
-    file = open(file_path, 'rU')
+    file = open(file_path, 'r')
 
     # Separate into a list of lists, each line a list of words.
     file_lines = file.readlines()
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 480bb787a2f8fbeaf4d6dcfa539386bf61174caf..7841639503db8cd90f5c1f193b6a33275f28387d 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1256,7 +1256,7 @@ def gzipOpen(path):
 
     if data is None:
         try:
-            filehandle = open(path, 'rU', encoding='utf-8', errors='surrogateescape')
+            filehandle = open(path, 'r', encoding='utf-8', errors='surrogateescape')
             data = filehandle.read()
             filehandle.close()
         except: