Is there a reason you want to use Variable Substitution? Why not use the Dynamic Configuration and set the filename in the mapping via the Dynamic Configuration UDF?
Another alternate is to use the Dynamic Configuration Module in your receiver channel before the PGP encryption module so that it can read the data you need to and then write to the Filename parameter..
Regards,
Bhavesh