PsychShield provides a filtering mechanism for YAML.load when using the Psych parser