Encode invalid characters in filenames.

Fixes issue #38 with the "One Week Rampage/Beyond" league.