Escape filename in lookupDefinition

Issue #42