diff --git a/lib/logging/appender.rb b/lib/logging/appender.rb
index <HASH>..<HASH> 100644
--- a/lib/logging/appender.rb
+++ b/lib/logging/appender.rb
@@ -255,7 +255,7 @@ class Appender
     if value.nil?
       @encoding = nil
     else
-      @encoding = Object.const_defined?(:Encoding) ? Encoding.find(value) : nil
+      @encoding = Object.const_defined?(:Encoding) ? Encoding.find(value.to_s) : nil
     end
   end
Ruby <I> does not support find encoding pass-through