Fixed handling of filenames with an embedded $, @, or %.