Fixes bug when specifying file format in Input

Substitution of variable name (%v) and location (%LC) tokens must be
done before passing to strftime.