fixes file path encoding issues