Add filename escaping

Fixes #26