Fix invalid chars appearing in filename* parameter