Allow folders with characters that need percent-encoding

Fixes #191