Support printf-style frame wildcards (e.g. file.%04d.exr).

Fixes #701.