diff --git a/src/DumperPluginManager.php b/src/DumperPluginManager.php
index a201878..c47ca36 100644
--- a/src/DumperPluginManager.php
+++ b/src/DumperPluginManager.php
@@ -84,8 +84,11 @@ class DumperPluginManager extends GeocoderPluginManagerBase {
   public function fixDumperFieldIncompatibility(&$dumper_result, $dumper, FieldConfigInterface $field_config) {
     // Fix not UTF-8 encoded result strings.
     // https://stackoverflow.com/questions/6723562/how-to-detect-malformed-utf-8-string-in-php
-    if (!preg_match('//u', $dumper_result)) {
-      $dumper_result = utf8_encode($dumper_result);
+
+    if (is_string($dumper_result)) {
+      if (!preg_match('//u', $dumper_result)) {
+        $dumper_result = utf8_encode($dumper_result);
+      }
     }
 
     // If the field is a string|text type check if the result length is
