diff --git a/lib/chamber/filters/encryption_filter.rb b/lib/chamber/filters/encryption_filter.rb
index <HASH>..<HASH> 100644
--- a/lib/chamber/filters/encryption_filter.rb
+++ b/lib/chamber/filters/encryption_filter.rb
@@ -1,6 +1,7 @@
 require 'openssl'
 require 'base64'
 require 'hashie/mash'
+require 'yaml'
 
 module    Chamber
 module    Filters
@@ -30,8 +31,8 @@ class     EncryptionFilter
         value = execute(value)
       elsif key.match(SECURE_KEY_TOKEN)
         unless value.respond_to?(:match) && value.match(BASE64_STRING_PATTERN)
-          marshalled       = Marshal.dump(value)
-          encrypted_string = encryption_key.public_encrypt(marshalled)
+          serialized_value = YAML.dump(value)
+          encrypted_string = encryption_key.public_encrypt(serialized_value)
           value            = Base64.strict_encode64(encrypted_string)
         end
       end
Refactor: Replace Marshall with YAML for encrypting