Only escape special characters in filenames

Fixes #19