Special character support in file paths

Thanks to @erikmueller for bringing it to our attention and for the initial fix.

Closes #19.