Index: spyder_kernels/customize/spydercustomize.py
--- spyder_kernels/customize/spydercustomize.py.orig
+++ spyder_kernels/customize/spydercustomize.py
@@ -124,7 +124,7 @@ except Exception:
 # Add default filesystem encoding on Linux to avoid an error with
 # Matplotlib 1.5 in Python 2 (Fixes Issue 2793)
 # =============================================================================
-if PY2 and sys.platform.startswith('linux'):
+if PY2 and sys.platform.startswith(('linux', 'openbsd')):
     def _getfilesystemencoding_wrapper():
         return 'utf-8'
 
