Make sure bad file names don't crash Node

Fixes #86