diff --git a/lib/link_thumbnailer/model.rb b/lib/link_thumbnailer/model.rb
index <HASH>..<HASH> 100644
--- a/lib/link_thumbnailer/model.rb
+++ b/lib/link_thumbnailer/model.rb
@@ -9,7 +9,7 @@ module LinkThumbnailer
 

     def sanitize(str)

       return unless str

-      str.strip.gsub(/[\r\n\f]+/, "\n")

+      str.strip.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '').gsub(/[\r\n\f]+/, "\n")

     end

 

   end
fix response sanitize function to clean UTF-8 data

forked from source repo to fix a bug (viz <URL>)