add protection against unicode file paths