Handle unicode errors with file paths