Switch to yaml.safe_load for better security