Demonstrate issue with directory indexes and spaces in paths

References #961
Make an effort to handle spaces in filenames in a way that url_for can handle.