fixes path encoding failing issue