sanitize gpg input before piping it to the shell