fix encoded path