handle URL encoded path properly